<form action="upload" method="post" enctype="multipart/form-data"
	onSubmit="if(document.getElementById('fileinput').value == ''){alert('Choose file!'); return false;} ">
	<input size="70" type="file" name="spreadsheet" id="fileinput" /> 
	<input type="submit" value="Upload File" />
</form>
